Skip to content

Add "skeletoning"/anonymizing of user applications#4702

Open
wes-otf wants to merge 8 commits intomainfrom
feature/clean_user_pii
Open

Add "skeletoning"/anonymizing of user applications#4702
wes-otf wants to merge 8 commits intomainfrom
feature/clean_user_pii

Conversation

@wes-otf
Copy link
Contributor

@wes-otf wes-otf commented Feb 17, 2026

Would close #3441. Adds a new ApplicationSubmissionSkeleton model that only contains minimal, non-PII datapoints. Also adds UI features for staff to select whether a user's application(s) should be deleted or converted to skeletoned/anonymized application.

The todos:

  • Implement ApplicationSubmissionSkeleton model & creation methods
  • Handle manual individual submission deletions
  • Handle manual bulk submission deletions/anonymization
  • Handle submissions with individual user deletions
  • Handle submissions with bulk user deletions
  • Include anonymized submissions in the results dashboard
  • Add unit tests for new functionality

Test Steps

@wes-otf wes-otf force-pushed the feature/clean_user_pii branch 3 times, most recently from b389175 to 0bc0caf Compare March 3, 2026 15:48
@wes-otf wes-otf force-pushed the feature/clean_user_pii branch from 8e4a111 to 9ae8d11 Compare March 12, 2026 18:18
@wes-otf wes-otf force-pushed the feature/clean_user_pii branch from 9ae8d11 to 30b37bd Compare March 18, 2026 19:57
@wes-otf wes-otf requested a review from frjo March 18, 2026 19:58
@wes-otf
Copy link
Contributor Author

wes-otf commented Mar 18, 2026

@frjo I'm going to add a unit test for the results view, some docs & do a final look over but it should be ready for review if you wanted to take a look before that

SubmissionSkeletonFilter.declared_filters
)
if not set(self.request.GET) & set(non_skeleton_fields):
skeleton_qs = SubmissionSkeletonFilter(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

somewhat of a hacky solution to managing 2 models with one FilterView but seems to work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like the # of SQL queries shoots up though so might need some optimizing

@wes-otf wes-otf marked this pull request as ready for review March 19, 2026 16:09
@wes-otf wes-otf changed the title WIP: Add "skeletoning"/anonymizing of user applications Add "skeletoning"/anonymizing of user applications Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deactivate and anonymise user accounts

1 participant